﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/DefaultTemplate.master"
    AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="TeamBuy.AccessWebUI.Login" %>

<%@ Register src="Components/Main_PublicSystemMessage.ascx" tagname="Main_PublicSystemMessage" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphDefaultHead" runat="server">
    <script language="javascript" type="text/javascript">
        function SubmitKeyClick(button) {
            if (event.keyCode == 13) {
                event.keyCode = 9;
                event.returnValue = false;
                document.all[button].click();
            }
        }
    </script>  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphDefault" runat="server">
    <uc1:Main_PublicSystemMessage ID="Main_PublicSystemMessage1" runat="server" />
    <div id="bdw" class="bdw">
        <div id="bd" class="cf">
            <div id="login">
                <div id="content">
                    <div class="box">
                        <div class="box-top">
                            
                        </div>
                        <div class="box-content">
                            <div class="head">
                                <h2>
                                    登录</h2>
                                <span>&nbsp;或者 <a href="/Reg.aspx">注册</a></span></div>
                            <div class="sect">
                                <div class="field email">
                                    <label for="login-email-address">
                                        Email</label>
                                    <asp:TextBox ID="txtEmail" runat="server" class="f-input" TabIndex="1"></asp:TextBox>
                                    <span class="lostpassword">
                                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Display="Dynamic" ControlToValidate="txtEmail" 
                                        ErrorMessage="请输入 Email 地址" ValidationGroup="LoginValidation"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revEmail" 
                                        runat="server" ErrorMessage="您输入了错误的 Email 地址" Display="Dynamic"
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                        ValidationGroup="LoginValidation" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                                    </span>
                                </div>
                                <div class="field password">
                                    <label for="login-password">
                                        密码</label>
                                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" class="f-input" TabIndex="2"></asp:TextBox>
                                    <span class="lostpassword"><a href="/ResetPassword.aspx">忘记密码?</a> <asp:RequiredFieldValidator ID="rfvPassword" runat="server" Display="Dynamic" ControlToValidate="txtPassword" 
                                        ErrorMessage="密码不能为空" ValidationGroup="LoginValidation"></asp:RequiredFieldValidator></span>
                                </div>
                                <div class="field autologin">
                                    <asp:CheckBox ID="ckbAutoLogin" Checked="true" runat="server" Text="" class="f-check" />
                                    <label for="autologin">
                                        下次自动登录</label>
                                </div>
                                <div class="act" style="background: none;">
                                    <asp:Button ID="btnSubmit" runat="server" Text="登录" class="formbutton" 
                                        onclick="btnSubmit_Click" ValidationGroup="LoginValidation" />
                                </div>
                                
                            </div>
                        </div>
                        <div class="box-bottom">
                        </div>
                    </div>
                </div>
                <div id="sidebar">
                    <div class="sbox">
                        <div class="sbox-top">
                        </div>
                        <div class="sbox-content">
                            <div class="side-tip">
                                <h2>
                                    还没有美团账户？</h2>
                                <p>
                                    立即<a href="/Reg.aspx">注册</a>，仅需30秒！</p>
                            </div>
                        </div>
                        <div class="sbox-bottom">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- bd end -->
    </div>
    <!-- bdw end -->
</asp:Content>
